package top.lvkun.basic.constant;

/**
 * 系统相关常量类
 */
public class Constant {

    /**
     * 通过手机验证码注册
     */
    public static final String PHONE_REG ="phone_reg";

    /**
     * 通过手机验证码登录
     */
    public static final String PHONE_LOGIN ="phone_login";
    /**
     * 微信登录email绑定
     */
    public static final String EMAILWX = "emailWx";
    /**
     * 微信登录phone绑定
     */
    public static final String PHONEWX = "phoneWx";

    /**
     * 前台用户登录
     */
    public static final String FRONT_LOGIN="front";
    /**
     * 后台用户登录
     */
    public static final String ADMIN_LOGIN="admin";

    /**
     * 待激活状态码2
     */
    public static final Integer STATE_ACTIVE = 2;

    /**
     * 待审核状态码1
     */
    public static final Integer STATE_AUDIT = 1;

    /**
     * 正常状态码
     */
    public static final Integer STATE_NORMAL = 0;

    /**
     * 禁用状态码-1
     */
    public static final Integer STATE_FORBIDDEN = -1;
    /**
     * 登录用户存入的token过期时间
     */
    public static final Integer EXPIRE_TIME_IN_REDIS = 30*60;

    /**
     * 微信登录相关常量：通过code获取access_token的url
     */
    public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    public static final String WECHAT_USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    /**
     * APPID
     */
    public static final String APPID = "wxd853562a0548a7d0";
    /**
     * 密钥
     */
    public static final String APPSECRET = "4a5d5615f93f24bdba2ba8534642dbb6";


    /**
     * 业务类型:宠物领养订单
     */
    public static final String BUSINESS_TYPE_ADOPT = "adopt_order";
    /**
     * 业务类型:商品服务订单
     */
    public static final String BUSINESS_TYPE_PRODUCT = "adopt_product";




}
